package wendyeq.iweb.blog.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import wendyeq.iweb.blog.dao.IUserAccountDAO;
import wendyeq.iweb.blog.pojo.UserAccount;
import wendyeq.iweb.blog.service.IUserAccountService;
@Service("userAccountServiceImpl")
public class UserAccountServiceImpl implements IUserAccountService{
	

	@Resource(name="userAccountDAO")
	private IUserAccountDAO userAccountDAO ;

	@Override
	public UserAccount loadUserByUsername(String un) {
		return userAccountDAO.findByName(un);
	}

	@Override
	public boolean delete(String id) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public List<UserAccount> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public UserAccount findById(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<UserAccount> findByPage(int min, int max) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean save(UserAccount ua) {
		userAccountDAO.saveOrUpdate(ua);
		return false;
	}

}
